﻿using MvcETicaretDenemesi.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcETicaretDenemesi.Controllers
{

    public class StoreController : Controller
    {
        EDBDataContext DB = new EDBDataContext();
        //
        // GET: /Store/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult List()
        {
            return View(new IndexLists { CategoryListe = DB.Categories.ToList(), BannerListe = DB.Banners.ToList() });
        }

    }
}
